package com.seckill.act.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.seckill.act.pojo.Activity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2022-03-04
 */
@Repository
public interface ActivityMapper extends BaseMapper<Activity> {

    /***
     * 时间查询
     * @return
     */
    List<Activity> times();

    /**
     * 活动列表查询
     * @param activity
     * @return
     */
    List<Activity> activityList(Activity activity);
}
